import React from "react";
interface propType {//类组件属性接口
    foo?:string
}
interface stateType{//类组件state接口
    hobby:Array<string>
    age:number
}

class Product extends React.Component<propType,stateType>{
   name:string
    constructor(props:any){
        super(props)
        this.name="韩梅梅"
        this.state={
            hobby:['抽烟',"喝酒",'烫头'],
            age:20,
          
        }
    }
    render(): React.ReactNode {
        return(
            <fieldset>
                <legend>123</legend>
                <h1>Product</h1>
            </fieldset>
        )
    }
}
export default Product
